#include "sprite2d.h"


namespace vortex
{
    ColoredQuad::ColoredQuad(glm::vec2 pos, glm::vec2 size, glm::vec4 color)
    {
        this->pos = pos;
        this->size = size;
        this->color = color;
    }

    SpriteQuad::SpriteQuad(glm::vec2& pos, glm::vec2& size, const std::string& image_path)
    {
        this->pos = pos;
        this->size = size;
        this->texture = Texture2D::fromImageFile(image_path);
    }
}
